package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface MenuMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Menu entity);

    Menu selectByPrimaryKey(Long id);


    List<Menu> selectAll();

    List<Menu> getRootMenu();

    void updateByPrimaryKey(Menu entity);

    Integer query4Count(QueryObject qo);

    List<Menu> query4List(QueryObject qo);
}